package com.cxh.service;

import com.cxh.entity.Item;
import com.cxh.entity.User;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;


public interface UserService {

    //1. 校验用户名是否可用
    void checkUsername(String username);

    //2、注册方法
    void register(User user);

    //3、登录功能
    User login(String username,String password);


}
